# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# This PKGBUILD was autocreated.  See https://xtermin.us/archperl/ for details
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-text-markdown
pkgver=1.000031
pkgrel=13
pkgdesc="Perl/CPAN Module Text::Markdown"
arch=("any")
url="https://search.cpan.org/dist/Text-Markdown"
license=("GPL" "PerlArtistic")
depends=('perl')
source=("https://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/Text-Markdown-$pkgver.tar.gz")
sha256sums=('c191c6d5eceb8cb75c0565192360662d202d716bad07a233c4b329a4284dc71b')

build() {
  cd "$srcdir"/Text-Markdown-$pkgver
  PERL_USE_UNSAFE_INC=1 \
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Text-Markdown-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
